import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Home from '@/view/homeContent/index.vue'
const routes = [
    {
        path: '*',
        redirect: '/home' //重定向
    },
    {
        path: '/home',
        name: 'home',
        component: Home
    },
      {
        path: '/movie',
        name: 'movie',
        component: ()=>import('@/view/movieContent/index.vue')
    },
      {
        path: '/award',
        name: 'award',
        component:()=>import('@/view/awardContent/index.vue')
    },
      {
        path: '/album',
        name: 'album',
        component: ()=>import('@/view/albumContent/index.vue')
    },
      {
        path: '/message',
        name: 'message',
        component: ()=>import('@/view/messageContent/index.vue')
    },

]
const router = new VueRouter({
    mode: 'history',
    routes
})

export default router
